<?php

namespace App\Repositories\Eloquent;

use App\Models\Policy;
use App\Repositories\Contracts\PolicyInterface;
use MakeRep\Repository;

class PolicyRepository extends Repository implements PolicyInterface
{

    public $fillable = ['id','admin_id','booking_id','type','source_id','source_type','airline','depart','arrive','depart_at','depart_end','rule_at','rule_end','flight_lines',
        'flights','cabins','last_sale','begin_sale','last_sale_minute','sale_time_enable','time_enable','week_enable','share','add_price','percentage_price',
        'diff_price','diff_percentage','refund','seat_min','seat_max','fix','product_type','office','pata','up_float','down_float',
        'come_up_type','come_up_value','filter_nervous','nervous_value','iata','status','policy_code','id_card','apply_child','update_type'];
    public $withs = ['booking','cabin_set','rule_set','product_mark'];
    public $view = 'policy';
    function model()
    {
        return Policy::class;
    }
}